package com.landscope.issue.scheduling;

import com.landscope.issue.service.applet.TokenService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 管理token定时任务
 */
@Component
@Slf4j
public class TokenManageScheduling {

    @Resource
    private TokenService tokenService;

    /**
     * 一分钟执行一次
     */
    @Scheduled(cron = "0 0/1 * * * ?")
    public void scheduled() {
        //tokenService.refreshToken();
    }
}
